* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: #0b0b0b;
    color: #fff;
    font-family: "微软雅黑", sans-serif;
  }
  
  /* 游戏容器：居中显示 */
  #game-container {
    width: 600px;
    height: 450px;
    margin: 50px auto;
    border: 2px solid #666;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  
  /* 开始/结束界面：居中遮罩 */
  #start-screen, #end-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #start-screen h1 { font-size: 32px; margin-bottom: 20px; }
  #start-screen p { font-size: 16px; margin-bottom: 30px; }
  #end-screen h2 { font-size: 28px; margin-bottom: 15px; }
  
  /* 按钮样式：科技感 */
  button {
    padding: 10px 24px;
    font-size: 16px;
    background: linear-gradient(45deg, #4e6ef2, #8e37c2);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
  }
  button:hover {
    transform: scale(1.05);
  }
  
  /* 玩家（飞船：蓝色方块） */
  #player {
    width: 30px;
    height: 30px;
    background: #48f;
    position: absolute;
    top: 210px; /* 垂直居中 */
    left: 50px; /* 左侧初始位置 */
  }
  
  /* 陨石（红色方块） */
  .meteor {
    width: 20px;
    height: 20px;
    background: #f44;
    position: absolute;
    top: 0;
    left: 600px; /* 初始在右侧外 */
  }
  
  /* 得分显示 */
  #score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
  }